3.4.84 \(\int \frac {(e+f x) \tanh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx\) [384]

Optimal. Leaf size=385 \[ \frac {f \text {ArcTan}(\sinh (c+d x))}{b d^2}-\frac {a^2 f \text {ArcTan}(\sinh (c+d x))}{b \left (a^2+b^2\right ) d^2}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {a^3 f \log (\cosh (c+d x))}{b^2 \left (a^2+b^2\right ) d^2}+\frac {a^2 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d^2}-\frac {a^2 f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}+\frac {a^2 (e+f x) \text {sech}(c+d x)}{b \left (a^2+b^2\right ) d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {a^3 (e+f x) \tanh (c+d x)}{b^2 \left (a^2+b^2\right ) d} \]

[Out]

f*arctan(sinh(d*x+c))/b/d^2-a^2*f*arctan(sinh(d*x+c))/b/(a^2+b^2)/d^2+a*f*ln(cosh(d*x+c))/b^2/d^2-a^3*f*ln(cos
h(d*x+c))/b^2/(a^2+b^2)/d^2+a^2*(f*x+e)*ln(1+b*exp(d*x+c)/(a-(a^2+b^2)^(1/2)))/(a^2+b^2)^(3/2)/d-a^2*(f*x+e)*l
n(1+b*exp(d*x+c)/(a+(a^2+b^2)^(1/2)))/(a^2+b^2)^(3/2)/d+a^2*f*polylog(2,-b*exp(d*x+c)/(a-(a^2+b^2)^(1/2)))/(a^
2+b^2)^(3/2)/d^2-a^2*f*polylog(2,-b*exp(d*x+c)/(a+(a^2+b^2)^(1/2)))/(a^2+b^2)^(3/2)/d^2-(f*x+e)*sech(d*x+c)/b/
d+a^2*(f*x+e)*sech(d*x+c)/b/(a^2+b^2)/d-a*(f*x+e)*tanh(d*x+c)/b^2/d+a^3*(f*x+e)*tanh(d*x+c)/b^2/(a^2+b^2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.63, antiderivative size = 385, normalized size of antiderivative = 1.00, number of steps used = 21, number of rules used = 13, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5686, 5559, 3855, 5702, 4269, 3556, 5692, 3403, 2296, 2221, 2317, 2438, 6874} \begin {gather*} -\frac {a^2 f \text {ArcTan}(\sinh (c+d x))}{b d^2 \left (a^2+b^2\right )}+\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{d^2 \left (a^2+b^2\right )^{3/2}}-\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{d^2 \left (a^2+b^2\right )^{3/2}}+\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{d \left (a^2+b^2\right )^{3/2}}-\frac {a^2 (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{d \left (a^2+b^2\right )^{3/2}}+\frac {a^2 (e+f x) \text {sech}(c+d x)}{b d \left (a^2+b^2\right )}-\frac {a^3 f \log (\cosh (c+d x))}{b^2 d^2 \left (a^2+b^2\right )}+\frac {a^3 (e+f x) \tanh (c+d x)}{b^2 d \left (a^2+b^2\right )}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {f \text {ArcTan}(\sinh (c+d x))}{b d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((e + f*x)*Tanh[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]

[Out]

(f*ArcTan[Sinh[c + d*x]])/(b*d^2) - (a^2*f*ArcTan[Sinh[c + d*x]])/(b*(a^2 + b^2)*d^2) + (a^2*(e + f*x)*Log[1 +
 (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])])/((a^2 + b^2)^(3/2)*d) - (a^2*(e + f*x)*Log[1 + (b*E^(c + d*x))/(a + S
qrt[a^2 + b^2])])/((a^2 + b^2)^(3/2)*d) + (a*f*Log[Cosh[c + d*x]])/(b^2*d^2) - (a^3*f*Log[Cosh[c + d*x]])/(b^2
*(a^2 + b^2)*d^2) + (a^2*f*PolyLog[2, -((b*E^(c + d*x))/(a - Sqrt[a^2 + b^2]))])/((a^2 + b^2)^(3/2)*d^2) - (a^
2*f*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 + b^2]))])/((a^2 + b^2)^(3/2)*d^2) - ((e + f*x)*Sech[c + d*x])/
(b*d) + (a^2*(e + f*x)*Sech[c + d*x])/(b*(a^2 + b^2)*d) - (a*(e + f*x)*Tanh[c + d*x])/(b^2*d) + (a^3*(e + f*x)
*Tanh[c + d*x])/(b^2*(a^2 + b^2)*d)

Rule 2221

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x]
 - Dist[d*(m/(b*f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2296

Int[((F_)^(u_)*((f_.) + (g_.)*(x_))^(m_.))/((a_.) + (b_.)*(F_)^(u_) + (c_.)*(F_)^(v_)), x_Symbol] :> With[{q =
 Rt[b^2 - 4*a*c, 2]}, Dist[2*(c/q), Int[(f + g*x)^m*(F^u/(b - q + 2*c*F^u)), x], x] - Dist[2*(c/q), Int[(f + g
*x)^m*(F^u/(b + q + 2*c*F^u)), x], x]] /; FreeQ[{F, a, b, c, f, g}, x] && EqQ[v, 2*u] && LinearQ[u, x] && NeQ[
b^2 - 4*a*c, 0] && IGtQ[m, 0]

Rule 2317

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 3403

Int[((c_.) + (d_.)*(x_))^(m_.)/((a_) + (b_.)*sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]), x_Symbol] :> Dist[2,
Int[(c + d*x)^m*(E^((-I)*e + f*fz*x)/((-I)*b + 2*a*E^((-I)*e + f*fz*x) + I*b*E^(2*((-I)*e + f*fz*x)))), x], x]
 /; FreeQ[{a, b, c, d, e, f, fz}, x] && NeQ[a^2 - b^2, 0] && IGtQ[m, 0]

Rule 3556

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rule 3855

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 4269

Int[csc[(e_.) + (f_.)*(x_)]^2*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(-(c + d*x)^m)*(Cot[e + f*x]/f), x
] + Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cot[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 5559

Int[((c_.) + (d_.)*(x_))^(m_.)*Sech[(a_.) + (b_.)*(x_)]^(n_.)*Tanh[(a_.) + (b_.)*(x_)]^(p_.), x_Symbol] :> Sim
p[(-(c + d*x)^m)*(Sech[a + b*x]^n/(b*n)), x] + Dist[d*(m/(b*n)), Int[(c + d*x)^(m - 1)*Sech[a + b*x]^n, x], x]
 /; FreeQ[{a, b, c, d, n}, x] && EqQ[p, 1] && GtQ[m, 0]

Rule 5686

Int[(((e_.) + (f_.)*(x_))^(m_.)*Tanh[(c_.) + (d_.)*(x_)]^(n_.))/((a_) + (b_.)*Sinh[(c_.) + (d_.)*(x_)]), x_Sym
bol] :> Dist[1/b, Int[(e + f*x)^m*Sech[c + d*x]*Tanh[c + d*x]^(n - 1), x], x] - Dist[a/b, Int[(e + f*x)^m*Sech
[c + d*x]*(Tanh[c + d*x]^(n - 1)/(a + b*Sinh[c + d*x])), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IGtQ[m, 0]
&& IGtQ[n, 0]

Rule 5692

Int[(((e_.) + (f_.)*(x_))^(m_.)*Sech[(c_.) + (d_.)*(x_)]^(n_.))/((a_) + (b_.)*Sinh[(c_.) + (d_.)*(x_)]), x_Sym
bol] :> Dist[b^2/(a^2 + b^2), Int[(e + f*x)^m*(Sech[c + d*x]^(n - 2)/(a + b*Sinh[c + d*x])), x], x] + Dist[1/(
a^2 + b^2), Int[(e + f*x)^m*Sech[c + d*x]^n*(a - b*Sinh[c + d*x]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && I
GtQ[m, 0] && NeQ[a^2 + b^2, 0] && IGtQ[n, 0]

Rule 5702

Int[(((e_.) + (f_.)*(x_))^(m_.)*Sech[(c_.) + (d_.)*(x_)]^(p_.)*Tanh[(c_.) + (d_.)*(x_)]^(n_.))/((a_) + (b_.)*S
inh[(c_.) + (d_.)*(x_)]), x_Symbol] :> Dist[1/b, Int[(e + f*x)^m*Sech[c + d*x]^(p + 1)*Tanh[c + d*x]^(n - 1),
x], x] - Dist[a/b, Int[(e + f*x)^m*Sech[c + d*x]^(p + 1)*(Tanh[c + d*x]^(n - 1)/(a + b*Sinh[c + d*x])), x], x]
 /; FreeQ[{a, b, c, d, e, f}, x] && IGtQ[m, 0] && IGtQ[n, 0] && IGtQ[p, 0]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {align*} \int \frac {(e+f x) \tanh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \text {sech}(c+d x) \tanh (c+d x) \, dx}{b}-\frac {a \int \frac {(e+f x) \text {sech}(c+d x) \tanh (c+d x)}{a+b \sinh (c+d x)} \, dx}{b}\\ &=-\frac {(e+f x) \text {sech}(c+d x)}{b d}-\frac {a \int (e+f x) \text {sech}^2(c+d x) \, dx}{b^2}+\frac {a^2 \int \frac {(e+f x) \text {sech}^2(c+d x)}{a+b \sinh (c+d x)} \, dx}{b^2}+\frac {f \int \text {sech}(c+d x) \, dx}{b d}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {a^2 \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{a^2+b^2}+\frac {a^2 \int (e+f x) \text {sech}^2(c+d x) (a-b \sinh (c+d x)) \, dx}{b^2 \left (a^2+b^2\right )}+\frac {(a f) \int \tanh (c+d x) \, dx}{b^2 d}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {\left (2 a^2\right ) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{a^2+b^2}+\frac {a^2 \int \left (a (e+f x) \text {sech}^2(c+d x)-b (e+f x) \text {sech}(c+d x) \tanh (c+d x)\right ) \, dx}{b^2 \left (a^2+b^2\right )}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {\left (2 a^2 b\right ) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\left (a^2+b^2\right )^{3/2}}-\frac {\left (2 a^2 b\right ) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\left (a^2+b^2\right )^{3/2}}+\frac {a^3 \int (e+f x) \text {sech}^2(c+d x) \, dx}{b^2 \left (a^2+b^2\right )}-\frac {a^2 \int (e+f x) \text {sech}(c+d x) \tanh (c+d x) \, dx}{b \left (a^2+b^2\right )}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}+\frac {a^2 (e+f x) \text {sech}(c+d x)}{b \left (a^2+b^2\right ) d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {a^3 (e+f x) \tanh (c+d x)}{b^2 \left (a^2+b^2\right ) d}-\frac {\left (a^2 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{\left (a^2+b^2\right )^{3/2} d}+\frac {\left (a^2 f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{\left (a^2+b^2\right )^{3/2} d}-\frac {\left (a^3 f\right ) \int \tanh (c+d x) \, dx}{b^2 \left (a^2+b^2\right ) d}-\frac {\left (a^2 f\right ) \int \text {sech}(c+d x) \, dx}{b \left (a^2+b^2\right ) d}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}-\frac {a^2 f \tan ^{-1}(\sinh (c+d x))}{b \left (a^2+b^2\right ) d^2}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {a^3 f \log (\cosh (c+d x))}{b^2 \left (a^2+b^2\right ) d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}+\frac {a^2 (e+f x) \text {sech}(c+d x)}{b \left (a^2+b^2\right ) d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {a^3 (e+f x) \tanh (c+d x)}{b^2 \left (a^2+b^2\right ) d}-\frac {\left (a^2 f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{\left (a^2+b^2\right )^{3/2} d^2}+\frac {\left (a^2 f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{\left (a^2+b^2\right )^{3/2} d^2}\\ &=\frac {f \tan ^{-1}(\sinh (c+d x))}{b d^2}-\frac {a^2 f \tan ^{-1}(\sinh (c+d x))}{b \left (a^2+b^2\right ) d^2}+\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}-\frac {a^2 (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d}+\frac {a f \log (\cosh (c+d x))}{b^2 d^2}-\frac {a^3 f \log (\cosh (c+d x))}{b^2 \left (a^2+b^2\right ) d^2}+\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d^2}-\frac {a^2 f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{\left (a^2+b^2\right )^{3/2} d^2}-\frac {(e+f x) \text {sech}(c+d x)}{b d}+\frac {a^2 (e+f x) \text {sech}(c+d x)}{b \left (a^2+b^2\right ) d}-\frac {a (e+f x) \tanh (c+d x)}{b^2 d}+\frac {a^3 (e+f x) \tanh (c+d x)}{b^2 \left (a^2+b^2\right ) d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.93, size = 284, normalized size = 0.74 \begin {gather*} \frac {\frac {2 b f \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{a^2+b^2}+\frac {a f \log (\cosh (c+d x))}{a^2+b^2}+\frac {a^2 \left (-2 d e \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+2 c f \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+f \text {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )-f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )}{\left (a^2+b^2\right )^{3/2}}-\frac {d (e+f x) \text {sech}(c+d x) (b+a \sinh (c+d x))}{a^2+b^2}}{d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((e + f*x)*Tanh[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]

[Out]

((2*b*f*ArcTan[Tanh[(c + d*x)/2]])/(a^2 + b^2) + (a*f*Log[Cosh[c + d*x]])/(a^2 + b^2) + (a^2*(-2*d*e*ArcTanh[(
a + b*E^(c + d*x))/Sqrt[a^2 + b^2]] + 2*c*f*ArcTanh[(a + b*E^(c + d*x))/Sqrt[a^2 + b^2]] + f*(c + d*x)*Log[1 +
 (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])] - f*(c + d*x)*Log[1 + (b*E^(c + d*x))/(a + Sqrt[a^2 + b^2])] + f*PolyL
og[2, (b*E^(c + d*x))/(-a + Sqrt[a^2 + b^2])] - f*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 + b^2]))]))/(a^2
+ b^2)^(3/2) - (d*(e + f*x)*Sech[c + d*x]*(b + a*Sinh[c + d*x]))/(a^2 + b^2))/d^2

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1927\) vs. \(2(365)=730\).
time = 5.55, size = 1928, normalized size = 5.01

method result size
risch \(\text {Expression too large to display}\) \(1928\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)*tanh(d*x+c)^2/(a+b*sinh(d*x+c)),x,method=_RETURNVERBOSE)

[Out]

2/d^2/(a^2+b^2)^(3/2)*b^2*f/(2*a^2+2*b^2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))*a^2*c-2/d
^2/(a^2+b^2)*a*f*ln(exp(d*x+c))+1/d^2/(a^2+b^2)^2*a^3*f*ln(b*exp(2*d*x+2*c)+2*a*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^(1/2))-2/d/(a^2+b^2)^(3/2)*a^4*e/(2*a^2+2*b^2)*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1/2))-2/d^2/(a^2
+b^2)^(5/2)*a^2*b^2*f*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1/2))+4/d^2/(a^2+b^2)*a^2*b*f/(2*a^2+2*b^2)*
arctan(exp(d*x+c))-2/d^2/(a^2+b^2)^(3/2)*a^4*f/(2*a^2+2*b^2)*dilog((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^
2)^(1/2)))+2/d^2/(a^2+b^2)^(3/2)*a^4*f/(2*a^2+2*b^2)*dilog((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/
2)))-1/d^2/(a^2+b^2)*b^2*f/(2*a^2+2*b^2)*a*ln(b*exp(2*d*x+2*c)+2*a*exp(d*x+c)-b)+2/d/(a^2+b^2)^(3/2)*b^2*f/(2*
a^2+2*b^2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))*a^2*x

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*tanh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="maxima")

[Out]

(2*a^2*integrate(-x*e^(d*x + c)/(a^2*b + b^3 - (a^2*b*e^(2*c) + b^3*e^(2*c))*e^(2*d*x) - 2*(a^3*e^c + a*b^2*e^
c)*e^(d*x)), x) - 2*(b*x*e^(d*x + c) - a*x)/(a^2*d + b^2*d + (a^2*d*e^(2*c) + b^2*d*e^(2*c))*e^(2*d*x)) - 2*a*
x/((a^2 + b^2)*d) + 2*b*arctan(e^(d*x + c))/((a^2 + b^2)*d^2) + a*log(e^(2*d*x + 2*c) + 1)/((a^2 + b^2)*d^2))*
f + (a^2*log((b*e^(-d*x - c) - a - sqrt(a^2 + b^2))/(b*e^(-d*x - c) - a + sqrt(a^2 + b^2)))/((a^2 + b^2)^(3/2)
*d) - 2*(b*e^(-d*x - c) + a)/((a^2 + b^2 + (a^2 + b^2)*e^(-2*d*x - 2*c))*d))*e

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1460 vs. \(2 (369) = 738\).
time = 0.38, size = 1460, normalized size = 3.79 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*tanh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="fricas")

[Out]

-(2*(a^3 + a*b^2)*d*f*x*cosh(d*x + c)^2 + 2*(a^3 + a*b^2)*d*f*x*sinh(d*x + c)^2 - 2*(a^3 + a*b^2)*d*cosh(1) -
2*(a^3 + a*b^2)*d*sinh(1) - (a^2*b*f*cosh(d*x + c)^2 + 2*a^2*b*f*cosh(d*x + c)*sinh(d*x + c) + a^2*b*f*sinh(d*
x + c)^2 + a^2*b*f)*sqrt((a^2 + b^2)/b^2)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d*x + c) + b*sinh
(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b + 1) + (a^2*b*f*cosh(d*x + c)^2 + 2*a^2*b*f*cosh(d*x + c)*sinh(d*x + c
) + a^2*b*f*sinh(d*x + c)^2 + a^2*b*f)*sqrt((a^2 + b^2)/b^2)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c) - (b*cos
h(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b + 1) - (a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*d*sinh(
1) + (a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*d*sinh(1))*cosh(d*x + c)^2 + 2*(a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*
d*sinh(1))*cosh(d*x + c)*sinh(d*x + c) + (a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*d*sinh(1))*sinh(d*x + c)^2)*sqrt
((a^2 + b^2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) + 2*b*sqrt((a^2 + b^2)/b^2) + 2*a) + (a^2*b*c*f -
a^2*b*d*cosh(1) - a^2*b*d*sinh(1) + (a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*d*sinh(1))*cosh(d*x + c)^2 + 2*(a^2*b
*c*f - a^2*b*d*cosh(1) - a^2*b*d*sinh(1))*cosh(d*x + c)*sinh(d*x + c) + (a^2*b*c*f - a^2*b*d*cosh(1) - a^2*b*d
*sinh(1))*sinh(d*x + c)^2)*sqrt((a^2 + b^2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) - 2*b*sqrt((a^2 + b
^2)/b^2) + 2*a) - (a^2*b*d*f*x + a^2*b*c*f + (a^2*b*d*f*x + a^2*b*c*f)*cosh(d*x + c)^2 + 2*(a^2*b*d*f*x + a^2*
b*c*f)*cosh(d*x + c)*sinh(d*x + c) + (a^2*b*d*f*x + a^2*b*c*f)*sinh(d*x + c)^2)*sqrt((a^2 + b^2)/b^2)*log(-(a*
cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b) + (a^2*b*d
*f*x + a^2*b*c*f + (a^2*b*d*f*x + a^2*b*c*f)*cosh(d*x + c)^2 + 2*(a^2*b*d*f*x + a^2*b*c*f)*cosh(d*x + c)*sinh(
d*x + c) + (a^2*b*d*f*x + a^2*b*c*f)*sinh(d*x + c)^2)*sqrt((a^2 + b^2)/b^2)*log(-(a*cosh(d*x + c) + a*sinh(d*x
 + c) - (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b) - 2*((a^2*b + b^3)*f*cosh(d*x + c)^2
 + 2*(a^2*b + b^3)*f*cosh(d*x + c)*sinh(d*x + c) + (a^2*b + b^3)*f*sinh(d*x + c)^2 + (a^2*b + b^3)*f)*arctan(c
osh(d*x + c) + sinh(d*x + c)) + 2*((a^2*b + b^3)*d*f*x + (a^2*b + b^3)*d*cosh(1) + (a^2*b + b^3)*d*sinh(1))*co
sh(d*x + c) - ((a^3 + a*b^2)*f*cosh(d*x + c)^2 + 2*(a^3 + a*b^2)*f*cosh(d*x + c)*sinh(d*x + c) + (a^3 + a*b^2)
*f*sinh(d*x + c)^2 + (a^3 + a*b^2)*f)*log(2*cosh(d*x + c)/(cosh(d*x + c) - sinh(d*x + c))) + 2*(2*(a^3 + a*b^2
)*d*f*x*cosh(d*x + c) + (a^2*b + b^3)*d*f*x + (a^2*b + b^3)*d*cosh(1) + (a^2*b + b^3)*d*sinh(1))*sinh(d*x + c)
)/((a^4 + 2*a^2*b^2 + b^4)*d^2*cosh(d*x + c)^2 + 2*(a^4 + 2*a^2*b^2 + b^4)*d^2*cosh(d*x + c)*sinh(d*x + c) + (
a^4 + 2*a^2*b^2 + b^4)*d^2*sinh(d*x + c)^2 + (a^4 + 2*a^2*b^2 + b^4)*d^2)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e + f x\right ) \tanh ^{2}{\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*tanh(d*x+c)**2/(a+b*sinh(d*x+c)),x)

[Out]

Integral((e + f*x)*tanh(c + d*x)**2/(a + b*sinh(c + d*x)), x)

________________________________________________________________________________________

Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*tanh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {tanh}\left (c+d\,x\right )}^2\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((tanh(c + d*x)^2*(e + f*x))/(a + b*sinh(c + d*x)),x)

[Out]

int((tanh(c + d*x)^2*(e + f*x))/(a + b*sinh(c + d*x)), x)

________________________________________________________________________________________